/* #pragma once */
#include <my_header.h>
#include "taskQueue.h"
typedef struct tidarr_s{
    pthread_t *arr;
    int workerNum;
}tidarr_t;



typedef struct shareRes_s{
    //队列
    task_queue_t long_task_queue; // 处理 cd/ls 等短命令
    task_queue_t short_task_queue; // 处理 cd/ls 等短命令
    int flag; //退出标志位
    tidarr_t long_tidarr;          //子线程的信息
    tidarr_t short_tidarr;          //子线程的信息

}shareRes_t;

int make_short_work(shareRes_t *pshareRes, int shortWorkerNum);
int make_long_work(shareRes_t *pshareRes, int longWorkerNum);
 int shareResInit(shareRes_t *pshareRes, int longWorkNum, int shortWorkNum);
 int initTcp(char *ip,char *port);
 int epollAdd(int epfd,int addfd,int trigger);
